/**
 * 
 * @author Travis C lynch <travisclynch@student.midlandstech.edu>
 * @version Jan 19 2012
 * <br>
 * <br>
 * <b>Instructions</b>
 * <p>
 * <ul>
 * <li>A Blob must be between 1 and 4 pounds, with fractional weights allowed. 
 * <li>A default constructor creates a Blob with a weight of 2 pounds. 
 * <li>A one-double-parameter constructor creates a Blob with that many pounds, 
 * or uses 2 pounds and prints an error message if the weight is less than 1 or greater than 4 pounds. 
 * </ul>
 * <b>Discription</b>
 * <p>
 * <ul>
 * <li>A class that implaments the BlobInterface interface
 * </ul>
 * 
 */
public class Blob implements BlobInterface {
	double weight=0; // weight of the blob
	
	// Constructors
	public Blob(){
		weight = 2;
	}
	/**
	 * @param w weight of blob used in constructing new instance
	 */
	public Blob(double w){
		if(w<0 || w>4){
			weight = 2;
			System.out.println("Error: Exceted Max Weight. A 2 Lbs Blob was created!");
		}else{
			weight = w;
		}
	}

	// Accessor Method 
	/**
	 * @return weight of the blob
	 */
	public double getWeight() {
		// TODO Auto-generated method stub
		return weight;
	}
	
	// Mutator Methods
	/**
	 * @param w new weight of blob that will be used
	 */
	public void setWeight(double w) {
		// TODO Auto-generated method stub
		weight = w;
	}

}
